#!/bin/bash

# ref: https://blog.csdn.net/zongshi1992/article/details/71693045

cat > ~/.vimrc << EOF
set tabstop=4
set softtabstop=4
set shiftwidth=4
set number

"set autoindent
set smartindent

"智能补全
inoremap ' ''<ESC>i
inoremap " ""<ESC>i
inoremap ( ()<ESC>i
inoremap [ []<ESC>i
inoremap { {<CR>}<ESC>O

"tab设置成4个空格，ref: https://blog.csdn.net/White_Idiot/article/details/78186201
set ts=4
set expandtab
set autoindent
EOF

